﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MesProjectWinform.BasicData.Entity
{
    public class Bommodel
    {
        public long Id { get; set; }
        public bool IsDeleted { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string UpdatedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }
        /// <summary>
        /// bom编号
        /// </summary>
        public string Bomcode { get; set; }
        /// <summary>
        /// bom名称
        /// </summary>
        public string Bomname { get; set; }
        /// <summary>
        /// bom版本
        /// </summary>
        public string Bomversion { get; set; }
        /// <summary>
        /// 产品项id
        /// </summary>
        public string Productitemid { get; set; }
        /// <summary>
        /// bom类型
        /// </summary>
        public string BomType { get; set; }
        /// <summary>
        /// bom等级
        /// </summary>
        public string Bomranks { get; set; }
        /// <summary>
        /// 工序管理编号
        /// </summary>
        public string Processmanagementcode { get; set; }
        /// <summary>
        /// 工序管理名称
        /// </summary>
        public string Processmanagementname { get; set; }
        /// <summary>
        /// /bom用量
        /// </summary>
        public string Bomdosage { get; set; }
        public long Parentid { get; set; }
        public string Bomdescription { get; set; }
        
        /// <summary>
        /// 是否展开（用于树形结构显示）
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public bool IsExpanded { get; set; }
    }
    public class BomDto
    {
        public string Message { get; set; }
        public string Code { get; set; }
        public List<Bommodel> Data { get; set; }
        //TotalCount
        public int TotalCount { get; set; }
    }
}

